package com.hspedu.extend_.Exercise;

public class NotePad extends Computer {
    private String color;

    public NotePad(String cpu, String memory, String hardDisk, String color) {
        super(cpu, memory, hardDisk);
        setColor(color);
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void printInfo(){
        System.out.println("Computer's info：\n"+ getDetails() + "\nBrand:" +color);
    }
}
